package com.ehaoyao.disruptor.handler;

import com.ehaoyao.entity.LongEvent;
import com.lmax.disruptor.EventHandler;

/**
 * <dl>
 * <dt>LongEventHandler</dt>
 * <dd>Description:</dd>
 * <dd>Copyright: Copyright (C) 2006</dd>
 * <dd>CreateDate: 2020/6/13</dd>
 * </dl>
 *
 * @author zhangyp
 */
public class LongEventHandler implements EventHandler<LongEvent> {

    @Override
    public void onEvent(LongEvent longEvent, long sequence, boolean endOfBatch) throws Exception {
        System.out.println("Event:"+longEvent);
    }
}
